﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Shop.MVC.Models
{
    /// <summary>
    ///  用户登录视图模型
    /// </summary>
    public class UserLoginVM
    {
        [Display(Name ="电话")]
        [Required(ErrorMessage ="{0}必填")]
        public string Phone { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}必填")]
        [StringLength(maximumLength: 20, MinimumLength = 6, ErrorMessage = "6-20位之间")]
        public string Password { get; set; }
    }
}